package com.nd.Utils;

import org.apache.commons.lang.RandomStringUtils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class OrderUtils {
    public static String getOrderSn(){
        String str = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
        String random = RandomStringUtils.random(4, false, true);

        return str+random;
    }
    public static String getPayId(){
        String str = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
        String random = RandomStringUtils.random(4, false, true);

        return str+random;
    }
}
